package org.streets.eis.component.modal;

import org.apache.wicket.Page;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;

public class RefreshPageCallback implements ModalWindow.WindowClosedCallback{

	private static final long serialVersionUID = 1L;
	
	private Page page;
	
	public RefreshPageCallback(Page page){
		this.page = page;
	}
	
	public void onClose(AjaxRequestTarget target) {
		
		target.addComponent(page);
		
	}

}
